package com.community.charge.controller;

import com.community.charge.service.CommunityVoService;
import com.community.common.core.controller.BaseController;
import com.community.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/communityVo")
public class CommunityVoController extends BaseController {

    @Autowired
    private CommunityVoService communityVoService;

    //绑定社区下拉框
    @GetMapping("/getCommunityVoNameById")
    public AjaxResult getCommunityVoNameById() {
        return AjaxResult.success(communityVoService.getCommunityVoNameById());
    }

}